package com.wuchao.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wuchao.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wuchao.vo.UserVO;
import io.lettuce.core.dynamic.annotation.Param;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author wuchao
 * @since 2023-12-12
 */
public interface UserService extends IService<User> {

    Page<User> findUserList(Page<User> userPage, UserVO userVO);

    /**
     * 导出用户Excel
     *
     * @param response
     * @param tbUsers
     * @throws IOException
     */
    void exportUserExcel(HttpServletResponse response, List<User> tbUsers) throws IOException;
    User loadUserByUsername( String username);
    //认证过程 name+pwd jwt
//    String login(String name,String pwd);
    //shiro认证登录
//登录
    String login(String username, String password);
    //登录返回token
}